package com.macro.mall.portal.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.macro.mall.common.api.CommonResult;
import com.macro.mall.portal.domain.BillLading;
import com.macro.mall.portal.domain.ConsultFiles;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * <p>
 * 提单记录表 服务类
 * </p>
 *
 * @author db
 * @since 2021-07-04
 */
public interface IBillLadingService extends IService<BillLading> {

    /**
     * 添加一条记录
     *
     * @param BillLading
     */
    @Transactional
    CommonResult addOne(BillLading billLading);

    /**
     * 分页查询记录
     *
     * @param
     * @return
     */
    IPage<BillLading> queryPage(String openId, Integer status, Integer page, Integer size);

    /**
     * 邀请记录
     * @param openId
     * @param status
     * @param page
     * @param size
     * @return
     */
    Map<String, Object> invite(String openId, Integer status, Integer page, Integer size);
}
